package org.opens.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.opens.entity.ShiroUserWithRole;

import java.util.List;

@Mapper
public interface ShiroUserWithRoleDao extends BaseMapper<ShiroUserWithRole> {

    @Select(value = "select * from shiro_user_with_role where user_id = #{userId}")
    public List<ShiroUserWithRole> findByUserId(@Param(value = "userId") Integer userId);

}
